/**
 * Created by 55456 on 2016/4/17.
 */
var db = require("../../models/index");
var ctx = 0;

module.exports = (router) => {

    var User = db.models.User;

    router.get("/login",(req,res) => {
        req.app.locals.cache.addCount();
        console.log(req.app.locals.cache);
        //...
        res.render('login.html',{data:req.app.locals.cache.count});
    });

    router.get("/register", (req,res) => {
        res.render("register.html");
    });

};